<template>
  <div class="hot-city">
    <div class="hot-title">热门城市</div>
    <ul class="hot-list">
      <li class="hot-item" v-for="item in hotCities" :key="item.id">
        {{ item.name }}
      </li>
    </ul>
  </div>
</template>
<script>
  export default {
    props:['hotCities']
  }
</script>
<style scoped>
  .hot-title{
    font-size: .24rem;
    padding: .2rem .3rem;
    color:#212121;
  }
  .hot-list{
    background-color: #fff;
    font-size: .28rem;
    position: relative;
    overflow: hidden;
  }
  .hot-list:before{
    content: '';
    position: absolute;
    height: 100%;
    width: 33.33%;
    left: 33.33%;
    border-left: .02rem solid #ddd;
    border-right: .02rem solid #ddd;
  }
  .hot-item{
    width: 33.33%;
    text-align: center;
    height: .9rem;
    line-height: .9rem;
    float: left;
    border-bottom: .02rem solid #ddd;
  }
</style>
